﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Demo
{
    public partial class BasicControls : Form
    {
        public BasicControls()
        {   
            InitializeComponent();
        }

        private void mainForm_Load(object sender, EventArgs e)
        {
            userNameText.Text = "Your username";
            
        }

        private void mainForm_Shown(object sender, EventArgs e)
        {
            userNameText.Focus();
        }

        private void closeButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void closeButton_Click_1(object sender, EventArgs e)
        {
            this.Close();
        }

        private void loginButton_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Your password : " + passwordText.Text);
        }
    }
}
